home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
idcutils.zip
/
TESTDRV.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-05-20
|
770b
|
31 lines
ECHO OFF
REM
REM Infinity Design Concepts, Inc.
REM 1052 Parkway drive
REM Louisville, Kentucky 40217-2333
REM
REM This is a sample batch file that demonstrates the use of
REM the CHKDRV.EXE program. The program will return an errorlevel
REM value that gives information about the status of a specified
REM drive.
REM
IF %1a==a GOTO CMDERROR
CHKDRV %1
REM returns ERRORLEVEL with one of the following values
REM
REM ERRORLEVEL = 0 - drive is ready
REM ERRORLEVEL = 1 - drive is not ready
REM
IF ERRORLEVEL 1 GOTO NOTREADY
ECHO Drive %1 is READY
GOTO END
:NOTREADY
ECHO Drive %1 is NOT READY
GOTO END
:CMDERROR
ECHO Drive letter must be specified on command line
ECHO Example: to test drive A:
ECHO TESTDRV A
GOTO END
:END